package org.example.mallsystem1104.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.mallsystem1104.entity.Carousel;

import java.util.List;

@Mapper
public interface CarouselMapper extends BaseMapper<Carousel> {

    @Select("select carousel.*,good.name as good_name,good.imgs as img from carousel,good where good.id=carousel.id order by show_order asc")
    List<Carousel> findAllCarousel();

}
